
package com.bei_en.teacher.admin.model.article.vo;

import java.util.*;
import com.bei_en.teacher.admin.model.article.bean.ArticleType;
import com.bei_en.teacher.admin.model.BaseVo;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import java.math.BigDecimal;

/**
 * 用于前端页面数据传递
 * 
 * @author Guocg
 * @date 2016-12-5 22:20:02
 */
public class ArticleTypeVo extends BaseVo {

    private ArticleType articleType;

    public ArticleTypeVo() {

    this.articleType = new ArticleType();
    }

    public ArticleTypeVo(ArticleType articleType) {

    this.articleType = articleType;
    }
    
    public ArticleType getArticleType() {

    return this.articleType;
    }
    
    public void setArticleType(ArticleType articleType) {

    this.articleType=articleType;
    }

        public Integer getId() {
            return this.articleType.getId();
        }
        public void setId(Integer id) {
            this.articleType.setId(id);
        }
        
        public void setId(Integer value) {
    	this.articleType.setId(value);
        }
	
    public Integer getId() {
        return this.articleType.getId();
    }
        
        public void setName(String value) {
    	this.articleType.setName(value);
        }
	@Length(max=255)
    public String getName() {
        return this.articleType.getName();
    }
        
        public void setParent(Integer value) {
    	this.articleType.setParent(value);
        }
	
    public Integer getParent() {
        return this.articleType.getParent();
    }
        
        public void setOrders(Integer value) {
    	this.articleType.setOrders(value);
        }
	
    public Integer getOrders() {
        return this.articleType.getOrders();
    }
        
        public void setRemarks(String value) {
    	this.articleType.setRemarks(value);
        }
	@Length(max=255)
    public String getRemarks() {
        return this.articleType.getRemarks();
    }
        
    public void setCreateTime(Date value) {
        this.articleType.setCreateTime(value!=null ? (int) (value.getTime()/1000) : 0);
    }

	 public Date getCreateTime() {
	     Integer time=this.articleType.getCreateTime();
	     if (time!=null&&time!=0)
		    return new Date(Long.valueOf(time)*1000);
		else
		    return null;
	    }
    


}